import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;

/**
 * @author malguy-wang sir
 * @create ${year}-${month}-${day}-${time}
 */
public class myPortProcessor implements BeanFactoryPostProcessor {
    public myPortProcessor() {
    }

    @Override
    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
        //获取定义信息
        BeanDefinition definition = beanFactory.getBeanDefinition("book");
        System.out.println("获取定义信息");
    }
}
